﻿@model Sohobloo.SoAuth.Web.Models.UserModel

<h2>Edit User</h2>
@Html.ActionLink("Back", "Index")
@using (Html.BeginForm())
{
    <fieldset>
        <legend>User</legend>
        <div class="editor-label">
            @Html.LabelFor(m => Model.UserName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => Model.UserName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => Model.Password)
            <b>(Keep empty if no change)</b>
        </div>
        <div class="editor-field">
            @Html.PasswordFor(m => Model.Password)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => Model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => Model.Email)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => Model.NickName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => Model.NickName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => Model.UserStatus)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(m => Model.UserStatus, new SelectList(Enum.GetValues(typeof(Sohobloo.SoAuth.Entity.UserStatuses))))
        </div>
        <div>
            <input type="submit" value="Submit" />
        </div>
    </fieldset>
}